.abpx-doc {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    color: @text-color;
    line-height: 1.5;
  }

  h4,
  h5,
  h6 {
    margin-bottom: 14px;
  }

  h2 {
    margin: 45px 0 20px;
    font-size: 25px;
  }

  h3 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 18px;
  }

  h6 {
    font-size: 14px;
    font-weight: normal;
    margin: 15px 0;
  }

  ul li,
  ol li {
    position: relative;
    margin: 5px 0 5px 10px;
    padding-left: 15px;
    color: @text-color;
    font-size: 15px;
    line-height: 26px;
    list-style: none;
  }

  &-header {
    background-color: #001938;
    user-select: none;
    display: flex;
    align-items: center;
    height: @header-height;
    padding: 0 30px;
    line-height: @header-height;

    &--logo {
      display: block;

      img {
        width: 40px;
        height: auto;
        margin-right: 10px;
        display: inline-block;
        vertical-align: middle;
      }

      span {
        display: inline-block;
        vertical-align: middle;
        color: #fff;
        font-size: 22px;
      }
    }

    &--nav {
      flex: 1;
      font-size: 0;
      text-align: right;

      &-item {
        position: relative;
        display: inline-block;
        vertical-align: middle;
        margin-left: 20px;

        .link {
          img {
            display: block;
            width: 26px;
            height: 26px;
          }
        }

        .text {
          position: relative;
          display: block;
          padding: 0 12px;
          color: #fff;
          font-size: 14px;
          line-height: 24px;
          text-align: center;
          border: 1px solid rgba(255, 255, 255, 0.7);
          border-radius: 20px;
          cursor: pointer;
          -webkit-transition: 0.3s ease-in-out;
          transition: 0.3s ease-in-out;
        }
      }
    }
  }

  &-nav {
    position: fixed;
    top: @header-height;
    bottom: 0;
    left: 0;
    z-index: 1;
    min-width: @nav-width;
    max-width: @nav-width;
    padding: 24px 0 72px;
    overflow-y: scroll;
    background-color: #fff;
    box-shadow: 0 8px 12px #ebedf0;

    &::-webkit-scrollbar {
      width: 6px;
      height: 6px;
      background-color: transparent;
    }

    &::-webkit-scrollbar-thumb {
      background-color: transparent;
      border-radius: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: rgba(69, 90, 100, 0.2);
    }

    &--group {
      margin-bottom: 16px;
    }

    &--title {
      padding: 4px 0 4px 30px;
      color: @link-color;
      font-weight: 600;
      font-size: 15px;
      line-height: 28px;
    }

    &--item {
      a {
        display: block;
        margin: 0;
        padding: 4px 0 4px 30px;
        color: @link-color;
        font-size: 14px;
        line-height: 28px;
        transition: color 0.2s;

        &.active {
          color: @brand-primary;
        }
      }
    }
  }

  &-container {
    padding-left: @nav-width;
  }

  &-main {
    padding: 30px;
    overflow: hidden;

    a {
      margin: 0 1px;
      color: @brand-primary;
    }

    h1 {
      margin: 0 0 30px;
      font-size: 30px;
      cursor: default;
    }

    ul li,
    ol li {
      &::before {
        position: absolute;
        top: 0;
        left: 0;
        box-sizing: border-box;
        width: 6px;
        height: 6px;
        margin-top: 10px;
        border: 1px solid #666;
        border-radius: 50%;
        content: '';
      }
    }

    blockquote {
      margin: 1em 0;
      border-left: 4px solid #ddd;
      padding: 0 1em;
      color: #666;

      * {
        color: #666;
      }
    }

    table {
      font-size: 14px;
      max-width: 100%;
      width: 100%;
      overflow: auto;
      border: 1px solid #f6f6f6;
      border-collapse: collapse;
      border-spacing: 0;

      em {
        color: @brand-success;
        font-size: 14px;
        font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;
        font-style: normal;
        -webkit-font-smoothing: auto;
      }

      thead {
        background: #f6f6f6;
        color: #000;
        text-align: left;
      }

      td,
      th {
        padding: 0.8em 0.5em;
        line-height: 1.5em;
      }

      td {
        border-top: 1px solid #f1f4f8;
      }

      &.table-api {
        th:nth-child(1) {
          width: 200px;
        }

        th:nth-last-child(2) {
          width: 150px;
        }

        th:last-child {
          width: 200px;
        }
      }
    }

    .card {
      margin-bottom: 24px;
      padding: 24px;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 8px 12px #ebedf0;
    }
  }
}
